package Dji;

import java.util.*;

/**
 * Description：
 * Author: zhangc
 * Date：2017/9/14 11:38
 */
public class Tree {

    public static Map<Integer, Node> nodes = new HashMap<>();

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Integer total = scanner.nextInt();
        nodes.put(1, new Node(1, -1));
        int no, father, lr;
        Node temp;
        for (int i = 1; i < total; ++i) {
            no = scanner.nextInt();
            father = scanner.nextInt();
            lr = scanner.nextInt();
            temp = new Node(no, father);

        }
    }


    static class Node {
        int no;
        int father;
        Set<Integer> childs;

        public Node(int no) {
            this.no = no;
        }

        public Node(int no, int father) {
            this.no = no;
            this.father = father;
            childs = new HashSet<>();
        }

        @Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (!(o instanceof Node)) return false;

            Node node = (Node) o;

            return no == node.no;
        }

        @Override
        public int hashCode() {
            return no;
        }
    }
}
